<?php
/**
 * @developer Ngann Socheat
 * @website www.sruol.com
 * @copyright 2012
 */
 
if(!empty($_SESSION['username']))
{
   	   $select="SELECT theme.images, iduser.cat_id,shorturl FROM tblpharmacy AS com 
INNER JOIN tbl_style AS theme ON com.user_id=theme.by_company_id 
INNER JOIN tbluser AS iduser ON iduser.id = com.user_id
WHERE com.email='".$_SESSION['username']."'";
	   $run=mysql_query($select);
	   while($assoc_sel=mysql_fetch_array($run)){
		    $im= $assoc_sel['images'];
                    $seller_cat = $assoc_sel['cat_id'];
                    $last_word = $assoc_sel['shorturl'];
		   }   
}

  $edit_path= W_ROOT.'/company/edit.php'; 
?>
<div style="height: 20px; width: 100%; clear: both;display: block;"></div>
   <!-- Header and Nav -->
  <div class="row ">
  <img src="<?php echo W_ROOT;?>/company/uploads/<?php echo $im; ?>" style="width: 100%; height:150px;" />
  </div>
  
  <!-- End Header and Nav -->
  
<?php 
if(!empty($seller_cat))
{
    
}
    $sql = "SELECT * FROM tblcategory WHERE parent_id=$seller_cat OR id=$seller_cat ORDER BY ordering";
    $result = mysql_query($sql);
    ?>   
  
    
    
        <!-- menu -->
        <div class="sellermenu" id="sellermenu1" style="display: none;">      
            <ul class="">  </ul>
        </div>
        <!-- end menu -->